package com.nh.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "gkl_book")
public class GKLBook extends BaseInfoEntity {
	// 标题
	private String infoTitle;
	// 格式
	private String gs;
	// 分类
	private GKLBookType classType;
	// 书籍地址
	private String bookAdd;
	// 图书描述
	private String desciption;
	//
	private String imageAdd;
	// 排序
	private int orderInfo;

	public String getInfoTitle() {
		return infoTitle;
	}

	public void setInfoTitle(String infoTitle) {
		this.infoTitle = infoTitle;
	}

	public String getGs() {
		return gs;
	}

	public void setGs(String gs) {
		this.gs = gs;
	}

	@ManyToOne
	@JoinColumn(name = "classTypeId")
	public GKLBookType getClassType() {
		return classType;
	}

	public void setClassType(GKLBookType classType) {
		this.classType = classType;
	}

	public String getBookAdd() {
		return bookAdd;
	}

	public void setBookAdd(String bookAdd) {
		this.bookAdd = bookAdd;
	}

	@Column(name = "desciption", columnDefinition = "TEXT ")
	public String getDesciption() {
		return desciption;
	}

	public void setDesciption(String desciption) {
		this.desciption = desciption;
	}

	public String getImageAdd() {
		return imageAdd;
	}

	public void setImageAdd(String imageAdd) {
		this.imageAdd = imageAdd;
	}

	public int getOrderInfo() {
		return orderInfo;
	}

	public void setOrderInfo(int orderInfo) {
		this.orderInfo = orderInfo;
	}

}
